import Person, { PersonType } from './types/app.d'

class Student extends Person {
  constructor(props: PersonType) {
    super(props)
  }
  init(): void {
    console.log(this.name)
  }
}

// class Person<P> {
//   name: string
//   constructor(props: P) {
//     // console.log('props,:', props)
//     this.name = (props as any).name
//     console.log(this.name, 'name')
//   }
// }

// let p = new Person<PersonType>({ name: 'devin', age: 1, address: '123', friend: 'g' })

// console.log()
